<template>
    <component :is="icon" />
</template>

<script setup lang="ts">
import * as AntIcons from '@ant-design/icons-vue'

const props = defineProps({
    icon: {
        type: String,
        default: '',
        requird: true,
    }
})

const icon = AntIcons[props.icon];
</script>
